home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000233_icon-group-sender _Thu Nov 18 08:16:37 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id IAA26926
for icon-group-addresses; Thu, 18 Nov 1999 08:15:55 -0700 (MST)
Message-Id: <199911181515.IAA26926@baskerville.CS.Arizona.EDU>
X-Authentication-Warning: agate.berkeley.edu: news set sender to <news> using -f
X-Newsgroups: comp.lang.icon
From: jrinkel@no.email.com (Jay Rinkel)
Subject: Re: Strange table behavior
X-Newsreader: News Xpress 2.01
X-Trace: typ11.nn.bcandid.com 942884478 216.180.15.233 (Wed, 17 Nov 1999 19:21:18 EST)
Date: Thu, 18 Nov 1999 00:20:08 GMT
To: icon-group@optima.CS.Arizona.EDU
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
In article <383330B4.58AE@att.com>, Kostas Oikonomou <oikonomou@att.com> wrote:
>When I run this program
>
>procedure main()
> local T
> T := table([])
> put(T[1], "A")
> write("*T = ", *T)
> write(T[1][1])
>end
>
>I get
>
>*T = 0
>A
>
>
>Can anyone explain to me what's happening here? Does it have to do with
>T being a table of lists?
>
> Kostas
Please see the article at the following web page: it is an article on the
Icon Programming language web site and specifically addresses this issue. It
explains the situation much better than I can here!
http://www.cs.arizona.edu/icon/progcorn/pc_inl21.htm
Jay Rinkel